﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

using Stefan.CodeDomGen;

namespace console
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("Provide path to the configuration xml.");
            }
            else
            {
                ProxyGenerator pg = new ProxyGenerator();
                using (StreamReader sr = File.OpenText(args[0]))
                {
                    string s = sr.ReadToEnd();
                    pg.GenerateClassProxy(s);
                    Console.WriteLine("Proxy(ies) generated successfully.");
                }
            }
        }
    }
}
